]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellEntry: Use correct enum for input purpose hints
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Mar 2018 14:22:15 +0000 (15:22 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 14 Mar 2018 13:30:47 +0000 (13:30 +0000)
This was mistakenly left using the GTK+ counterparts. Luckily the enums
are binary compatible, but oops.

js/ui/shellEntry.js

index 897a226fa60a669eb1e5e01af5624471f97dd472..9db5136e680286f9e4772b553cc4723e7e3b230e 100644 (file)
@@ -55,11 +55,11 @@ var EntryMenu = new Lang.Class({
 
         if (v) {
             this._makePasswordItem();
-            this._entry.input_purpose = Gtk.InputPurpose.PASSWORD;
+            this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD;
         } else {
             this._passwordItem.destroy();
             this._passwordItem = null;
-            this._entry.input_purpose = Gtk.InputPurpose.FREE_FORM;
+            this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL;
         }
     },